<?php /* Smarty version 2.6.22, created on 2009-05-19 19:10:28
         compiled from multiple.tpl */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
	<title>Insert title here</title>
	<link href="style.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript"> <?php echo '
	var number = 1;
	function addfile( )
	{
		if( number < 6 )
		{			
			document.getElementById("files").innerHTML = document.getElementById("files").innerHTML + \'<input name="userfile[]" id="\' + number + \'" type="file" /> <a id="link\' + number + \'" href="javascript:removeElement(\' + number + \');"><img src="images/cancel.png" style="border: 0;" /></a><br id="br\' + number + \'" />\';
			number++;
		}
	}
	function removeElement(divNum) {
		  var d = document.getElementById(\'files\');
		  var olddiv = document.getElementById(divNum);
		  d.removeChild(olddiv);
		  var oldlink = document.getElementById("link" + divNum);
		  d.removeChild(oldlink);
		  var oldbr = document.getElementById("br" + divNum);
		  d.removeChild(oldbr);
		  number--;
		}
	'; ?>
</script>
</head>
<body>
<div align="center"> 
	<div class="container">
		<div align="left">
			<div class="logo">
			</div>
		</div>
		<div class="content_top">
		</div>
		<div class="content_middle">
			<div class="left">
				<img src="images/simple.gif" />
				<br />
				<div class="hr"></div>
				nothing offernsive or illegal <br />
				we support most image types. your currently uploading multiple files.
				<br /><br />
				<form enctype="multipart/form-data" method="post" action="upload.php">
					<span class="text">first select your image</span> <br />
					<div id="files">
						<input name="userfile[]" type="file" /><br />
						<input name="userfile[]" type="file" /><br />
						<input name="userfile[]" type="file" /><br />
						<input name="userfile[]" type="file" /><br />
					</div>
					<span class="text">finally press upload</span> <br />
					<input type="submit" value="" name="submit" class="upload" />
				</form>
			</div>
			<div class="right">
				<img src="images/advert.gif" alt="Advert" />
			</div>
		</div>
		<div class="content_bottom">
		</div>
	</div>
</div>
</body>
</html>